<?php

$this->breadcrumbs = array(
    'Ruang Rapat' => $this->createUrl('/' . $this->module->id . '/front/index'),
    'Manage Request',
);

$this->widget('zii.widgets.jui.CJuiTabs', array(
    'tabs' => array(
        'Waiting Request'   => $this->renderPartial('request', array('model' => $model, 'dataProvider' => $model->searchWaitingRequest(), 'status' => 'waiting'), true),
        'Approved Request'  => $this->renderPartial('request', array('model' => $model, 'dataProvider' => $model->searchApprovedRequest(), 'status' => 'approved'), true),
        'Rejected Request'  => $this->renderPartial('request', array('model' => $model, 'dataProvider' => $model->searchRejectedRequest(), 'status' => 'rejected'), true),
        
//        'Waiting Request' => array('ajax' => $this->createUrl('default/admin', array('status' => 'waiting'))),
//        'Approved Request' => array('ajax' => $this->createUrl('default/admin', array('status' => 'approved'))),
//        'Rejected Request' => array('ajax' => $this->createUrl('default/admin', array('status' => 'rejected'))),
    ),
    // additional javascript options for the tabs plugin
    'options' => array(
        'collapsible' => true,
    ),
));